package com.hlb.customeruserribbon;

import com.hlb.customeruserribbon.pojo.User;
import org.springframework.cloud.netflix.feign.FeignClient;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.PathVariable;
import org.springframework.web.bind.annotation.PostMapping;
import org.springframework.web.bind.annotation.RequestBody;

@FeignClient("privode-user")
public interface FeignCustomerUserClient {
    @GetMapping("/simple/{id}")
    public User findById(@PathVariable("id") Integer id);

    @GetMapping("/user")
    public User saveUser(@RequestBody User user);
}
